﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BirdController : MonoBehaviour {
	BirdPlayer player;
	// Use this for initialization
	void Start () {
		player = FindObjectOfType<BirdPlayer> ();
	}
	
	// Update is called once per frame
	void Update () {
		if (!player.isAlive)
			return;
		if (Input.GetMouseButtonDown (0)) {
			player.Fly ();
		}
	}
}
